<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>操作日志</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="jquery-easyui-1.4/themes/icon.css" type="text/css"></link>
  <link rel="stylesheet" href="jquery-easyui-1.4/themes/default/easyui.css" type="text/css"></link>
  <script type="text/javascript" src="jquery-easyui-1.4/jquery.min.js"></script>
  <script type="text/javascript" src="jquery-easyui-1.4/locale/easyui-lang-zh_CN.js"></script>
  <script type="text/javascript" src="jquery-easyui-1.4/jquery.easyui.min.js"></script>
  <script type="text/javascript" src="js/formatStrToDate.js"></script>
 	<script type="text/javascript">
 			$(function(){
 				$('#dg').datagrid({    
   				 url:'operationLog/listRows', 
   				 toolbar: [{
					text:'删除',
					iconCls: 'icon-remove',
					handler: function(){alert('帮助按钮')}
				},'-',{
					text:'刷新',
					iconCls: 'icon-reload',
					handler: function(){
						$('#dg').datagrid('reload'); 
					}
				}],
   				 fit:true, 
   				 border:false,
   				 rownumbers:true,
   				 singleSelect:false,
   				 checkOnSelect:true,
   				 autoRowHeight:false,
   				 loadMsg:'加载中，请稍等...',
   				 striped:true,//显示斑马线
   				 idField:'id',//翻页时记住前面选的
   				 pagination:true,//显示底部分页工具栏
   				 pageSize:10,
   				 pageList:[10,20,30,40,50],
  				 columns:[[
  						 { field:'ck',checkbox:true },
		       			 {field:'id',title:'ID',width:'5%',sortable:true,hidden:true},    
		       			 {field:'operationName',title:'Controller名称',width:'30%'},    
		       			 {field:'operationUrl',title:'Controller地址',width:'30%'},
		       			 {field:'operationDate',title:'操作时间',width:'20%',
		       			 formatter: function(value,row,index){
		       			 			if (value != null){
										return formatDate(value);
								} 
		       			 	}
		       			 },
		       			 {field:'user',title:'操作时间人',width:'15%',
		       			 formatter: function(value,row,index){
		       			 			if (value != null){
										return value.chinaName;
								} 
		       			 	}
		       			 } 
    ]]    
}); 
 			});
 	</script>
  </head>
  <body>
  		<table id="dg"></table> 
  </body>
</html>
